package pp.gateway.application.video.download.Dto;

import lombok.Data;
import pp.infrastructure.mysql.mapper.video.VideosDo;

import java.time.LocalDateTime;

@Data
public class VideosDownloadDto {
    private Long userId;

    private String fileName;

    private String filePath;

    private Long fileSize;

    private String fileType;

    private LocalDateTime uploadTime;

    public VideosDo toDO() {
        VideosDo out = new VideosDo();
        out.setUserId(this.userId);
        out.setFilePath(this.filePath);
        out.setFileName(this.fileName);
        out.setFileSize(this.fileSize);
        out.setFileType(this.fileType);
        out.setUploadTime(this.uploadTime);
        return out;
    }
}